﻿using System;
using System.Collections.Generic;

namespace BigMouse.Framework
{
    public interface IDao<T>
    {
        int save(T entity);

        void update(T entity);

        void delete(T entity);

        void delete(int id);

        T get(int id);

        IList<T> query(string hql, object[] values);

        IList<T> query(string hql, object[] values, int pageSize, int currentPage);
    }
}
